package com.gilight.base.uiapp.product;

import com.gilight.base.base.exception.ServiceException;
import com.gilight.base.dto.goods.SpuDTO;
import com.gilight.base.model.Page;
import com.gilight.base.model.spu.SpuDO;

/**商品服务
 *
 * Created by rize on 2019/7/1.
 */
public interface ProductService {

    /**
     *
     * @param pageNo
     * @param pageSize
     * @param categoryId  搜索分类
     * @param orderBy     排序 id 或 sales
     * @param isAsc       是否升序
     * @param title  搜索标题
     * @return
     * @throws ServiceException
     */
    public Page<SpuDO> getProductPage(
            Integer pageNo,
            Integer pageSize,
            Long categoryId,
            String orderBy,
            Boolean isAsc,
            String title
            ,Long zzjgId) throws ServiceException;

    /**
     * 获取商品详情
     * @param spuId  商品Id
     * @param isBaiHuo isBaiHuo
     * @param zzjgId
     * @return
     * @throws ServiceException
     */
    public SpuDTO getProduct(
            Long spuId,
            Integer isBaiHuo, Long zzjgId) throws ServiceException;

}
